xen/arm: vgic-v3: message in the emulation code should be rate-limited
authorJulien Grall <julien.grall@linaro.org>
Mon, 19 Jan 2015 14:01:09 +0000 (14:01 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 29 Jan 2015 15:56:21 +0000 (15:56 +0000)
commitc96222cc6dbb285a4de8f25e3b8e284e212ef964
treeead351f7a5c4493d6434c86c4e0b91e1697a5948
parent9f7798eb6ea20ba94617772ed0f3b8862b826533
xen/arm: vgic-v3: message in the emulation code should be rate-limited

printk by default is not rate-limited by default. Therefore a malicious guest
may be able to flood the Xen console.

If we use gdprintk, unnecessary information will be printed such as the
filename and the line. Instead use XENLOG_G_{ERR,DEBUG} combine with %pv.

Also remove the vGICv3 prefix which is not neccessary and update some
message which were wrong.

This is XSA-118.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic-v3.c